package cn.chenhongchao.zhaobiaopingtai.controller;


import cn.chenhongchao.zhaobiaopingtai.common.api.CommonPage;
import cn.chenhongchao.zhaobiaopingtai.common.api.CommonResult;
import cn.chenhongchao.zhaobiaopingtai.dto.param.TenderFileListData;
import cn.chenhongchao.zhaobiaopingtai.service.ICategoryService;
import cn.chenhongchao.zhaobiaopingtai.service.ITenderService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@Api(value = "tenderSubmit", tags = "tenderSubmit")
@RestController
@CrossOrigin
@RequestMapping("/tenderSubmit")
public class TenderSubmitController {

    @Resource
    private ITenderService tenderService;

    @ApiOperation(value = "分页招标列表", notes = "分页招标列表")
    @RequestMapping(value = "/getTenderSubmitList",method = RequestMethod.POST)
    public CommonResult getTenderSubmitList(@RequestParam(required = false)Integer pageNum,
                                            @RequestParam(required = false) Integer pageSize,String tenderName,String supplierCode) {
        return  CommonResult.success(CommonPage.restPage(tenderService.getListzhaobiao2(pageNum, pageSize,
                0, tenderName)));
    }


}
